package org.example.day20240816;

public class test4 {

    public static int monkey(int n){
        if(n == 10){
            return 1;
        }
        return 2*monkey(n+1)+2;
    }

    public static void main(String[] args) {
        System.out.println(monkey(1));
    }
}
